package com.shushan.mixedexam.oralcalculation.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: OralCalculatePaperInfoBean
 * @Desciption: //口算练习paperinfobean
 * @author: zhangshihao
 * @date: 2018-07-26
 */
public class OralCalculatePaperInfoBean extends NetBaseBean {

    public int total;//答题时间:分钟
    public int time;//奖励时间:分钟
    public int num;//正确完成多少题满足条件

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        if(jsonObject == null){
            return;
        }
        total = jsonObject.optInt("total",0);
        time = jsonObject.optInt("time",0);
        num = jsonObject.optInt("num",0);
    }
}
